
# install ruby
tar -zxvf ruby-2.1.2.tar.bz2
cd ruby-2.1.2
./configure
make 
sudo make install
#gem sources --add https://ruby.taobao.org/ --remove https://rubygems.org/
gem sources -a http://gems.ruby-china.org/ --remove https://rubygems.org/
# gem sources -l
sudo gem install rails
sudo gem install buldle --pre
#bundle config mirror.https://rubygems.org https://ruby.taobao.org
bundle config mirror.https://rubygems.org http://gems.ruby-china.org

# install node.js
tar -xf node-v0.10.28.tar.gz
cd node-v0.10.28
./configure
make 
sudo make install


# install redis
tar -xf redis-2.8.9.tar.gz
cd redis-2.8.9
./configure
make 
make test
sudo make install


# install mongodb
udo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
sudo apt-get update
sudo apt-get install mongodb-org

# install GenieACS back end core use npm
#download xx-net and start up
npm config set registry="http://registry.npm.taobao.org"
npm config set proxy="http://127.0.0.1:8087"
npm install -g genieacs

# install GenieACS back end core from source
git clone https://github.com/zaidka/genieacs.git
cd genieacs
#npm config set strict-ssl false
#npm config set registry "http://registry.npmjs.org/"
#npm config set proxy=http://proxy_ip:proxy_port
#npm config delete http-proxy
#npm config delete https-proxy
npm config set registry="http://registry.npm.taobao.org"
npm install


# install GenieACS GUI
git clone https://github.com/zaidka/genieacs-gui
cd genieacs-gui
bundle


